//
//  MBProgressHUD+WTJProgressHUD.m
//  Wutuojia
//
//  Created by anlun on 15/7/26.
//  Copyright (c) 2015年 Work. All rights reserved.
//

#import "MBProgressHUD+WTJProgressHUD.h"

@implementation MBProgressHUD (WTJProgressHUD)
+ (void)showHUDViewTo:(UIView *)view
                image:(UIImage *)image
                 text:(NSString *)text
         timeInterval:(NSTimeInterval)s{
    MBProgressHUD *hud = [[MBProgressHUD alloc] initWithView:view];
    hud.removeFromSuperViewOnHide = YES;
    hud.opacity = 0.5;
    hud.customView = [[UIImageView alloc] initWithImage:image];
    hud.labelText = text;
    hud.mode = MBProgressHUDModeCustomView;
    [view addSubview:hud];
    [hud show:YES];
    [hud hide:YES afterDelay:s];
}
@end
